package cn.edu.pku.ss.lbs.blip;

import java.util.ArrayList;
import java.util.List;

public class BlipConfig {
    private List<BlipServerConfig> serverConfigList = new ArrayList<BlipServerConfig>();

    public BlipConfig() {
        BlipServerConfig serverConfig;
        BlipDeviceConfig deviceConfig;

        serverConfig = new BlipServerConfig();
        serverConfig.setUsername("tutorial");
        serverConfig.setPassword("mypassword");
        serverConfig.setServerHost("192.168.201.165");

        deviceConfig = new BlipDeviceConfig();
        deviceConfig.setZone("a");
        deviceConfig.setBT1Address("00:0E:A5:00:50:9C");
        deviceConfig.setBT2Address("00:0E:A5:00:50:9D");
        deviceConfig.setBT3Address("00:0E:A5:00:50:9E");
        serverConfig.addDeviceConfig(deviceConfig);

        deviceConfig = new BlipDeviceConfig();
        deviceConfig.setZone("b");
        deviceConfig.setBT1Address("00:0E:A5:00:50:DC");
        deviceConfig.setBT2Address("00:0E:A5:00:50:DD");
        deviceConfig.setBT3Address("00:0E:A5:00:50:DE");
        serverConfig.addDeviceConfig(deviceConfig);

        serverConfigList.add(serverConfig);
    }

    public List<BlipServerConfig> getServerConfigList() {
        return serverConfigList;
    }
}
